package com.abl.consumer.fallback;

public class EchoFallBack {

    public static String consumerAddFallBack(Throwable t) {
        return "服务降级处理：Add --- " + t.getMessage();
        //        if (BlockException.isBlockException(t)) {
        //            return "providerAddFallBack, 异常 CallBack: " + t.getClass().getSimpleName();
        //        }
        //        return "providerAddFallBack, 异常 CallBack: " + t.getClass().getCanonicalName();
    }

    public static String consumerSubFallBack(Throwable t) {
        return "服务降级处理：Sub --- " + t.getMessage();
        //
        //        if (BlockException.isBlockException(t)) {
        //            return "providerSubFallBack, 异常 CallBack: " + t.getClass().getSimpleName();
        //        }
        //        return "providerSubFallBack, 异常 CallBack: " + t.getClass().getCanonicalName();
    }

}
